<?php

/* @var \Illuminate\Routing\Router $router */

$router->match(['get', 'post'], 'department/config', 'ConfigController@index');

$router->match(['get', 'post'], 'department/category', 'DepartmentCategoryController@index');
$router->match(['get', 'post'], 'department/category/add', 'DepartmentCategoryController@add');
$router->match(['get', 'post'], 'department/category/edit', 'DepartmentCategoryController@edit');
$router->match(['post'], 'department/category/delete', 'DepartmentCategoryController@delete');
$router->match(['get'], 'department/category/show', 'DepartmentCategoryController@show');
$router->match(['post'], 'department/category/sort', 'DepartmentCategoryController@sort');

$router->match(['get', 'post'], 'department', 'DepartmentController@index');
$router->match(['get', 'post'], 'department/add', 'DepartmentController@add');
$router->match(['get', 'post'], 'department/edit', 'DepartmentController@edit');
$router->match(['post'], 'department/delete', 'DepartmentController@delete');
$router->match(['get'], 'department/show', 'DepartmentController@show');
$router->match(['post'], 'department/sort', 'DepartmentController@sort');
